/* prevent execution of SpookAPI if included more then once */
if(window.SpookAPI == undefined) {

var SpookAPI = {
	version: '2.0a',
	author: 'Petko Petkov | pdp (architect)',
	homepage: 'http://www.gnucitizen.org',
	projecthome: 'http://www.gnucitizen.org/projects/attackapi'};

SpookAPI.emails = function (source) {
	var REGEX = /(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/g;
};

SpookAPI.isbns = function (source) {
	var REGEX = /(ISBN[\:\=\s][\s]*(?=[-0-9xX ]{13})(?:[0-9]+[- ]){3}[0-9]*[xX0-9])|(ISBN[\:\=\s][ ]*\d{9,10}[\d|x])/g;
};

SpookAPI.urls = function (source) {
	var REGEX = /((((ht|f)tp(s?))\:\/\/)|(www.))([0-9a-zA-Z\-]+\.)+[a-zA-Z]{2,6}(\:[0-9]+)?(\/\S*)?/g;
};

/* hook on $S */
if ($S == undefined)
	var $S = SpookAPI;

}
/* the end */